package patterns.structures.adapter.net.clsadpt;

import patterns.structures.adapter.net.objadpt.Point;
import patterns.structures.adapter.net.objadpt.Shape;
import patterns.structures.adapter.net.objadpt.TextView;
 

public class TextShape2 extends TextView implements Shape {

	public int getCorX(){
		System.out.println("TextShape2.getCorX()...");
		return 100;
	}
	
	@Override
	public Point getBlPoint() {
		System.out.println("TextShape2.getBlPoint()...");
		int x=getCorX();
		int y=super.getCorY();
		return new Point(x,y);
	}

	@Override
	public Point getTRPoint() {
		System.out.println("TextShape2.getTRPoint()...");
		int x=getCorX();
		int y=super.getCorY();
		int h=super.getHeight();
		int w=super.getWidth();
		return new Point(x+w,y+h);
	}

 

}
